using System;
using MonoTouch.UIKit;
namespace Reply.Seat.LeadCollector.UI
{
	public class WaitAnimation : IDisposable
	{
		private UIView _waitView;
		public WaitAnimation (UIView waitView)
		{
			_waitView = waitView;
		}
		public void StartWait ()
		{
			UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
			if (this._waitView != null) this._waitView.Hidden = false;
		}
		public void EndWait ()
		{
			UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;
			if (this._waitView != null) this._waitView.Hidden = true;
		}

		#region IDisposable implementation
		void IDisposable.Dispose ()
		{
		}
		#endregion
	}
}

